<?
	if($gid == ""){
		$gid = $dsfm_gallery->get_min();
	}

	$all_gallery = $dsfm_gallery->get_all_gallery();
	$tpl->assign("all_gallery",$all_gallery);

	$gallery = $dsfm_gallery->get_gallery($gid);
	$gallery = $dsfm_localization->object($gallery, array("detail","warning"));
	$tpl->assign("gallery",$gallery);

	$all_picture = $dsfm_gallery->get_all_picture($gid);
	$tpl->assign("all_picture", $all_picture);

	$tpl->draw("gallery");
?>